package visual;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.util.Vector;

import javax.swing.JDialog;
import javax.swing.JFrame;

public class Dialog extends JDialog implements ActionListener, ItemListener{
	/**
	 * 
	 */
	private static final long serialVersionUID = 781754217536014402L;
	Vector attributes = null;
	
	public Dialog(JFrame owner, String name){
		super(owner, name, true);
		createDialog();
		setResizable(false);
		validate();
		pack();
		setLocation(owner.getX() + (owner.getWidth() - getWidth()) / 2, owner.getY() + (owner.getHeight() - getHeight()) / 2);
		setVisible(true);
	}
	
	public void actionPerformed(ActionEvent arg0) {
		
	}
	
	public void createDialog(){
		
	}

	public void itemStateChanged(ItemEvent arg0) {
		
	}
}
